package com.bee.gateway.common.dto;

import com.bee.gateway.common.domain.RoutesDO;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 路由DTO
 * @author  Damin.yang
 * @date  2019/8/2 16:13
 */
@Data
@NoArgsConstructor
public class RoutesDTO {

  private Long id;

  private String routeId;

  private String uri;

  private String predicates;

  private String filters;

  private Integer orders;

  private String description;

  private String status;


  public RoutesDTO(RoutesDO routesDO) {
    this.id = routesDO.getId();
    this.routeId = routesDO.getRouteId();
    this.uri = routesDO.getUri();
    this.predicates = routesDO.getPredicates();
    this.filters = routesDO.getFilters();
    this.orders = routesDO.getOrders();
    this.description = routesDO.getDescription();
    this.status = routesDO.getStatus();
  }
}
